Ext.form.field.Base.override({
    onLabelableRender: function() {
        var me = this,
            margins,
            side,
            style = {};

        if (me.extraMargins) {
            margins = me.el.getMargin();
            for (side in margins) {
                if (margins.hasOwnProperty(side)) {
                    style['margin-' + side] = (margins[side] + me.extraMargins[side]) + 'px';
                }
            }
            me.el.setStyle(style);
        }

        var label = me.getFieldLabel(),
            eflLabel = getEflLabel(me.entity, me.name);

        if(eflLabel !== null){
            label = eflLabel;
        }

        if(!Ext.isEmpty(label)){
            me.setFieldLabel(label);
        }
    }
});

Ext.grid.column.Column.override({
    initRenderData: function() {
        var me = this,
            tipMarkup = '',
            tip = me.tooltip,
            attr = me.tooltipType == 'qtip' ? 'data-qtip' : 'title';

        if (!Ext.isEmpty(tip)) {
            tipMarkup = attr + '="' + tip + '" ';
        }

        var tmp = Ext.apply(me.callParent(arguments), {
            text: me.text,
            menuDisabled: me.menuDisabled,
            tipMarkup: tipMarkup
        });

        if(!Ext.isEmpty(me.dataIndex)){
            var label = me.text;
            try{
                var  eflLabel = getEflLabel(me.entity, me.dataIndex);
            } catch(e){
                alertError(e);
            }

            if(eflLabel !== null){
                label = eflLabel;
            }

            tmp['text'] = label;
        }

        return tmp;
    }
});